package top.infopub.mgc.core.domain;


import com.alibaba.fastjson.JSON;

import top.infopub.model.mgc.PartnerInfo;


/**
 * 邮件/短信供应商
 * @author Awoke
 * @version 2018年11月6日
 * @see PartnerInfoDomain
 * @since
 */
public class PartnerInfoDomain extends PartnerInfo {

    private static final long serialVersionUID = -5904030642632648024L;

    private Email email;

    private Sms sms;

    public Email getEmail() {
        return email;
    }

    public void setEmail(Email email) {
        this.email = email;
    }

    public Sms getSms() {
        return sms;
    }

    public void setSms(Sms sms) {
        this.sms = sms;
    }

    /**
     * 邮件
     * @author Awoke
     * @version 2018年11月6日
     * @see Email
     * @since
     */
    public static class Email {

        private String host;

        private String from;

        private String fromName;

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }

        public String getFrom() {
            return from;
        }

        public void setFrom(String from) {
            this.from = from;
        }

        public String getFromName() {
            return fromName;
        }

        public void setFromName(String fromName) {
            this.fromName = fromName;
        }

        @Override
        public String toString() {
            return JSON.toJSONString(this);
        }

    }

    /**
     * 短信
     * @author Awoke
     * @version 2018年11月6日
     * @see Email
     * @since
     */
    public static class Sms {

        private String spCode;

        private String sendUrl;

        private String reportUrl;

        public String getSpCode() {
            return spCode;
        }

        public void setSpCode(String spCode) {
            this.spCode = spCode;
        }

        public String getSendUrl() {
            return sendUrl;
        }

        public void setSendUrl(String sendUrl) {
            this.sendUrl = sendUrl;
        }

        public String getReportUrl() {
            return reportUrl;
        }

        public void setReportUrl(String reportUrl) {
            this.reportUrl = reportUrl;
        }

        @Override
        public String toString() {
            return JSON.toJSONString(this);
        }
    }

}
